const mongoose = require('mongoose');
var mongoosePaginate = require('mongoose-paginate');

var schema = new mongoose.Schema({ 
    id:String,
    title:String,
    content:String,
    time:String,
    stars:Object,
    number:Number });
schema.plugin(mongoosePaginate);

var Product = mongoose.model('product', schema); // Model.paginate()

module.exports = Product;